<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<{:url('btccoin/edit')}>">
            <input type="hidden" name="id" value="<{$info['id']}>" />
            <div class="layui-form-item">
              <label class="layui-form-label">标题</label>
              <div class="layui-input-block">
                <input type="text" name="title" value="<{$info['title']}>" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">货币标识</label>
              <div class="layui-input-block">
                <input type="text" name="uuid" value="<{$info['uuid']}>" required lay-verify="required" placeholder="请输入货币标识" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">请上传LOGO</label>
              <div class="layui-input-block">
                  <button type="button" class="layui-btn" id="myupimg">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                  </button>
                  <input type="hidden" name="pic" value="<{$info['pic']}>" />
                  <div style="display:inline-block;position:relative;">
                      <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;" id="closeimg">x</span>
                      <img id="pic" height=50 src="<{$info['pic']}>" />
                  </div>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">官方地址</label>
              <div class="layui-input-block">
                <input type="text" name="url" value="<{$info['url']}>" placeholder="请输入官方地址" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">描述</label>
              <div class="layui-input-block">
                <textarea class="layui-textarea" name="description" placeholder="请输入描述"><{$info['description']}></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">平台</label>
              <div class="layui-input-block">
                <{volist name='plat' id='v'}>
                    <input type="checkbox" value="<{$key}>" name="btc_plat_id[<{$key}>]" title="<{$v}>" <{if in_array($key, $checked)}>checked<{/if}>>
                <{/volist}>
              </div>
            </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();
});
</script>
